#-*- coding: utf-8 -*-
import twitter
import facebook
import plurk

my_platform = {'twitter':twitter, 'plurk':plurk, 'facebook':facebook}

def api(platform, action, **args):
    try:
        my_platform[platform].api(action, args)
    except KeyError:
        print 'sorry, this %s is not supported.'%platfrom
